package com.testmanager.testmananger.foundation.mapper;

import com.testmanager.testmananger.foundation.domain.enums.EnumBase;
import com.testmanager.testmananger.foundation.dto.ConstantDto;
import lombok.Data;



@Data
public class ConstantMapper {

    public static ConstantDto toConstantDto(EnumBase enumBase){
        ConstantDto constantDto = new ConstantDto();
        return constantDto.setCode(enumBase.name())
                .setName(enumBase.getName())
                .setValue(enumBase.getValue());

    }

}
